<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./TemplatePrincipal.xhtml">

            <ui:define name="top">
                top
            </ui:define>

            <ui:define name="left">
                left
            </ui:define>

            <ui:define name="content">
                <f:view>
                    <h:form>
                        <h1><p:outputLabel value="View"/></h1>
                        <p:panelGrid columns="2">
                           <p:outputLabel value="Name:"/>
                            <p:outputLabel value="#{userSystemBean.usuario.name}" title="Name"/>
                            <p:outputLabel value="FirstName:"/>
                            <p:outputLabel value="#{userSystemBean.usuario.firstname}" title="FirstName"/>
                            <p:outputLabel value="LastName:"/>
                            <p:outputLabel value="#{userSystemBean.usuario.lastname}" title="LastName"/>
                            <p:outputLabel value="Address:"/>
                            <p:outputLabel value="#{userSystemBean.usuario.address}" title="Address"/>
                            <p:outputLabel value="Phone:"/>
                            <p:outputLabel value="#{userSystemBean.usuario.phone}" title="Phone"/>
                            <p:outputLabel value="Mail:"/>
                            <p:outputLabel value="#{userSystemBean.usuario.mail}" title="Mail"/>
                            <p:outputLabel value="Password:"/>
                            <p:outputLabel value="#{userSystemBean.usuario.password}" title="Password"/>
                            <p:outputLabel value="IdPerfil:"/>
                            <p:outputLabel value="#{userSystemBean.usuario.idPerfil.name}" title="IdPerfil"/>
                            <p:outputLabel value="Idclass:"/>
                            <p:outputLabel value="#{userSystemBean.usuario.idclass.type}" title="Idclass"/>
                        </p:panelGrid>
                        <p:commandButton value="Save" action="#{userSystemBean.guardar()}" />
                        <p:commandButton value="Edit" action="UserCrearEditar" />
                        <p:commandButton value="Cancel" action="UserFacelets" />
                    </h:form>
                </f:view>


            </ui:define>

            <ui:define name="bottom">
                bottom
            </ui:define>

        </ui:composition>

    </body>
</html>
